package com.dragons.spring5.aop.xml;

import org.aspectj.lang.ProceedingJoinPoint;

public class BookProxy {
    public void before() { System.out.println(".........前置通知"); }
    public void around(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
        System.out.println(">>>>环绕之前.....");
        proceedingJoinPoint.proceed(); /**被增强的方法执行*/
        System.out.println(">>>>环绕之后.....");
    }
    public void after() { System.out.println(" .........最终通知"); }
    public void afterThrowing() { System.out.println(".........异常通知"); }
    public void afterReturning() { System.out.println(".........后置通知"); }
}
